import tkinter
class App():
    def __init__(self,root,labelr):
        label_1 = tkinter.Label(root, text=labelr)
        label_1.pack(side=tkinter.LEFT,padx=5,pady=20)
        frame = tkinter.Frame(root)
        frame.pack(side=tkinter.LEFT)
        self.button = tkinter.Button(frame,text='这个按钮是为园哥设计的',fg="black",command=self.say_hi)
        self.button.pack()
        self.button_2 = tkinter.Button(frame, text='这个按钮是为园哥设计的', fg="black", command=self.say_hi)
        self.button_2.pack()

    def big(self,size,title,label):
        root.geometry(size)
        root.title(title)
        label_2 = tkinter.Label(root, text=label)
        label_2.pack(side=tkinter.TOP)


    def say_hi(self):
        print('python3学习要循序渐进')
if __name__ == '__main__':

    root = tkinter.Tk()
    app = App(root,'园哥')
    app.big('300x300','园哥你回来了','园哥')
    root.mainloop()